package com.amos.generate.service.impl;

import com.amos.generate.bean.DataBaseField;
import com.amos.generate.dao.DataBaseMapper;
import com.amos.generate.service.DataBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Copyright © 2018 嘉源锐信. All rights reserved.
 *
 * @Project: mu-exam
 * @ClassName: DataBaseServiceImpl
 * @Package: com.amos.generate.service.impl
 * @author: zhuqb
 * @Description:
 * @date: 2020/3/10 0010 下午 17:53
 * @Version: V1.0
 */
@Service
public class DataBaseServiceImpl implements DataBaseService {

    @Autowired
    DataBaseMapper mapper;

    /**
     * 获取数据库表字段名称、数据类型、字段备注
     *
     * @param tableName
     * @return
     */
    @Override
    public List<DataBaseField> getTableFields(String tableName) {
        String tableSchema = "mu_exam";
        return mapper.getTableFields(tableName,tableSchema);
    }
}
